package com.liit.module.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.liit.module.entity.Retail;
import com.liit.module.frame.utils.page.Pagination;

@Repository
public interface RetailDao extends BaseDao {
	int deleteById(Integer id);

	int insert(Retail record);

	Retail selectById(Integer id);

	int updateById(Retail record);

	/**
	 * 分页查询
	 * 
	 * @param pagination
	 * @param record
	 * @return
	 */
	public List<Retail> listPage(Pagination pagination, @Param("record") Retail record);

	public int update(Retail record);
}